import 'cesium/Widgets/widgets.css';
import StarMap from "star-map/atlas/StarMap";
import Event from "star-map/atlas/event";
import MAP_LAYER_TYPES from "star-map/constants/mapLayerTypes";

export function printHello() {

    let m = new StarMap();
    m.addLayer({
        url: "http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={TileMatrix}&TILEROW={TileRow}&TILECOL={TileCol}&tk=78e531281857f44e0a6bea484a573099",
        layerName: "BasicLayer",
        // format: '',
        maximumLevel: 13,
        credit: '天地图',
        tileMatrixSetID: "BasicLayer",
        style: 'default',
        type: MAP_LAYER_TYPES.WMTS
    });
    m.addLayer({
        url:
            "http://t0.tianditu.gov.cn/ibo_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ibo&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={TileMatrix}&TILEROW={TileRow}&TILECOL={TileCol}&tk=78e531281857f44e0a6bea484a573099",
        layerName: "OsmLayer",
        maximumLevel: 13,
        credit: '天地图',
        style: 'default',
        type: MAP_LAYER_TYPES.WMTS
    });
    m.addLayer({
        url:"http://t0.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={TileMatrix}&TILEROW={TileRow}&TILECOL={TileCol}&tk=78e531281857f44e0a6bea484a573099",
        layerName: "OsmLayer2",
        maximumLevel: 13,
        credit: '天地图',
        style: 'default',
        type: MAP_LAYER_TYPES.WMTS
    })
    console.log(Event)
}
